import http from '@/utils/request'
// 获取所有角色列表
export const reqGetRolesList = (qureyInfo) => {
  return http({
    method: 'get',
    url: '/sys/role',
    params: qureyInfo
    // {
    // page, // 页码
    // pagesize // 每页条数
    // }

  })
}
// 删除角色请求
// export const reqDelRoleById = id => {
//   return http({
//     method: 'delete',
//     url: `/sys/role/${id}`
//   })
// }
// ----------------------简--------------------写------------------------------------
// 删除角色接口
export const reqDelRoleById = id => http({ method: 'delete', url: `/sys/role/${id}` })
// 新增角色接口
export const reqAddRole = data => http({ method: 'post', url: '/sys/role', data })
// 根据id查询角色信息
export const reqGetRoleById = id => http({ method: 'get', url: `/sys/role/${id}` })
// 更新角色信息
export const reqUpdateRole = data => http({ method: 'put', url: `/sys/role/${data.id}`, data })
// 获取公司信息的接口
export const reqGetCompanyInfoById = id => http({ method: 'get', url: `/company/${id}` })

